ostree-prepare-root: avoid mount cycle
authorEtienne Champetier <e.champetier@ateme.com>
Tue, 2 Sep 2025 21:33:00 +0000 (17:33 -0400)
committerEtienne Champetier <e.champetier@ateme.com>
Thu, 4 Sep 2025 19:04:39 +0000 (15:04 -0400)
commit0c06054250bedae6771fb46a7e3b4a22eeb54d5e
tree8a09efa231a77ce3443d5801fdfd509f3b74c25a
parent7c1d4125a5fa556ae8ae39a6829d02d0ba3e3f0f
ostree-prepare-root: avoid mount cycle

Moving the physical root at /sysroot, we end up
with a mount cycle between / and /sysroot, forcing us to use
MS_DETACH during shutdown (d0c454c23637dceda6d7395dd2141b564e3efa47).

We can replace ostree-shutdown.service by reworking how we mount
/sysroot, in short use MS_BIND instead of MS_MOVE.
src/switchroot/ostree-prepare-root.c